package com.njust.controller.RequestMappingHandler;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;
import java.util.List;

@Controller
@RequestMapping("/resovler")
public class ViewResovlerController {

    @RequestMapping("/loginPage")
    public String getPage(){
        return "login.jsp";
    }


    @RequestMapping("/handleplus")
    public String handleplus(Model model){
        //meinv:/gaoqing  meinv:/dama
        //forward:/login.jsp
        List<String> vname = new ArrayList<>();
        List<String> imgname = new ArrayList<>();
        vname.add("杨敬强");
        vname.add("朱彦鹏");
        imgname.add("光头强");
        model.addAttribute("video", vname);
        model.addAttribute("imgs", imgname);
        return "meinv:/gaoqing";
    }

}
